<html>
<script>
var arr = [1,2,3,4];
for(let value of arr){
    console.log(value);
}
</script>
</html>